<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>Class: App | MotorJS</title>

    <script src="scripts/prettify/prettify.js"> </script>
    <script src="scripts/prettify/lang-css.js"> </script>
    <!--[if lt IE 9]>
      <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <link type="text/css" rel="stylesheet" href="styles/bootstrap.min.css">
    <link type="text/css" rel="stylesheet" href="styles/prettify-jsdoc.css">
    <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
    <link type="text/css" rel="stylesheet" href="styles/tui-doc.css">

    
        
            <link type="text/css" rel="stylesheet" href="custom.css">
        
    
</head>
<body>
<nav class="lnb" id="lnb">
    <div class="logo" style="width: 156px; height: 36px">
        
            <img src="./logo.png" width="100%" height="100%">
        
    </div>
    <div class="title">
        <h1><a href="index.html" class="link">MotorJS</a></h1>
        
    </div>
    <div class="search-container" id="search-container">
        <input type="text" placeholder="Search">
        <ul></ul>
    </div>
    
        <ol class="lnb-tab">
            <li id="api-tab">
                <a href="#"><h4>API</h4></a>
            </li>
            <li id="examples-tab">
                <a href="#"><h4>教程</h4></a>
            </li>
        </ol>
    
    <div class="lnb-examples hidden"><h3>教程</h3><ul><li><a href="tutorial-Webpack配置.html">Webpack配置</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="Webpack配置_sub"></div></li><li><a href="tutorial-初始化.html">初始化</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="初始化_sub"></div></li><li><a href="tutorial-剖切.html">剖切</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="剖切_sub"></div></li><li><a href="tutorial-加载数据.html">加载数据</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="加载数据_sub"></div></li><li><a href="tutorial-地图服务.html">地图服务</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="地图服务_sub"></div></li><li><a href="tutorial-坐标转换.html">坐标转换</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="坐标转换_sub"></div></li><li><a href="tutorial-基本操作.html">基本操作</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="基本操作_sub"></div></li><li><a href="tutorial-构件树.html">构件树</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="构件树_sub"></div></li><li><a href="tutorial-概要、静态模型切换.html">概要、静态模型切换</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="概要、静态模型切换_sub"></div></li><li><a href="tutorial-模式切换.html">模式切换</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="模式切换_sub"></div></li><li><a href="tutorial-测量.html">测量</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="测量_sub"></div></li><li><a href="tutorial-添加标注.html">添加标注</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="添加标注_sub"></div></li><li><a href="tutorial-点选操作.html">点选操作</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="点选操作_sub"></div></li><li><a href="tutorial-特效.html">特效</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="特效_sub"></div></li><li><a href="tutorial-自定义盒子绘制.html">自定义盒子绘制</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="自定义盒子绘制_sub"></div></li><li><a href="tutorial-视角控制.html">视角控制</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="视角控制_sub"></div></li><li><a href="tutorial-路径漫游.html">路径漫游</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="路径漫游_sub"></div></li><li><a href="tutorial-轨迹运动模拟.html">轨迹运动模拟</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="轨迹运动模拟_sub"></div></li></ul></div><div class="lnb-api hidden"><h3>Classes</h3><ul><li><a href="AnimationPlayer.html">AnimationPlayer</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="AnimationPlayer_sub"><div class="member-type">Members</div><ul class="inner"><li><a href="AnimationPlayer.html#multiplier">multiplier</a></li></ul><div class="member-type">Methods</div><ul class="inner"><li><a href="AnimationPlayer.html#pause">pause</a></li><li><a href="AnimationPlayer.html#play">play</a></li><li><a href="AnimationPlayer.html#playAll">playAll</a></li><li><a href="AnimationPlayer.html#stop">stop</a></li><li><a href="AnimationPlayer.html#stopAll">stopAll</a></li></ul></div></li><li><a href="App.html">App</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="App_sub"><div class="member-type">Methods</div><ul class="inner"><li><a href="App.html#.Token">Token</a></li><li><a href="App.html#.ValidateToken">ValidateToken</a></li></ul></div></li><li><a href="ArcGISMap.html">ArcGISMap</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="ArcGISMap_sub"></div></li><li><a href="AutoRoamManager.html">AutoRoamManager</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="AutoRoamManager_sub"><div class="member-type">Members</div><ul class="inner"><li><a href="AutoRoamManager.html#cameraPoses">cameraPoses</a></li></ul><div class="member-type">Methods</div><ul class="inner"><li><a href="AutoRoamManager.html#addPose">addPose</a></li><li><a href="AutoRoamManager.html#createRouteFromArray">createRouteFromArray</a></li><li><a href="AutoRoamManager.html#createRouteFromFile">createRouteFromFile</a></li><li><a href="AutoRoamManager.html#destroy">destroy</a></li><li><a href="AutoRoamManager.html#emptyRoutes">emptyRoutes</a></li><li><a href="AutoRoamManager.html#pauseRoam">pauseRoam</a></li><li><a href="AutoRoamManager.html#playRoam">playRoam</a></li><li><a href="AutoRoamManager.html#removePose">removePose</a></li><li><a href="AutoRoamManager.html#stopRoam">stopRoam</a></li></ul></div></li><li><a href="BaseMap.html">BaseMap</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="BaseMap_sub"></div></li><li><a href="BingMap.html">BingMap</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="BingMap_sub"></div></li><li><a href="Cartesian2.html">Cartesian2</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="Cartesian2_sub"></div></li><li><a href="Cartesian3.html">Cartesian3</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="Cartesian3_sub"><div class="member-type">Methods</div><ul class="inner"><li><a href="Cartesian3.html#.fromDegrees">fromDegrees</a></li><li><a href="Cartesian3.html#.getProjectVectorLength">getProjectVectorLength</a></li></ul></div></li><li><a href="Cartographic.html">Cartographic</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="Cartographic_sub"><div class="member-type">Methods</div><ul class="inner"><li><a href="Cartographic.html#.fromCartesian">fromCartesian</a></li><li><a href="Cartographic.html#.toCartesian">toCartesian</a></li></ul></div></li><li><a href="ClippingPlaneEditor.html">ClippingPlaneEditor</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="ClippingPlaneEditor_sub"><div class="member-type">Methods</div><ul class="inner"><li><a href="ClippingPlaneEditor.html#addClippingPlane">addClippingPlane</a></li><li><a href="ClippingPlaneEditor.html#destroy">destroy</a></li></ul></div></li><li><a href="Color.html">Color</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="Color_sub"><div class="member-type">Methods</div><ul class="inner"><li><a href="Color.html#fromCssColorString">fromCssColorString</a></li></ul></div></li><li><a href="CommentEditor.html">CommentEditor</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="CommentEditor_sub"><div class="member-type">Members</div><ul class="inner"><li><a href="CommentEditor.html#color">color</a></li><li><a href="CommentEditor.html#commentType">commentType</a></li><li><a href="CommentEditor.html#font">font</a></li><li><a href="CommentEditor.html#lineWidth">lineWidth</a></li></ul><div class="member-type">Methods</div><ul class="inner"><li><a href="CommentEditor.html#destroy">destroy</a></li><li><a href="CommentEditor.html#exportImage">exportImage</a></li><li><a href="CommentEditor.html#isDestroyed">isDestroyed</a></li></ul></div></li><li><a href="Component.GetComponentBimPropByIdAndProjId.html">GetComponentBimPropByIdAndProjId</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="Component.GetComponentBimPropByIdAndProjId_sub"></div></li><li><a href="ComponentView.html">ComponentView</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="ComponentView_sub"><div class="member-type">Members</div><ul class="inner"><li><a href="ComponentView.html#guid">guid</a></li><li><a href="ComponentView.html#infos">infos</a></li><li><a href="ComponentView.html#project">project</a></li><li><a href="ComponentView.html#subProjectIds">subProjectIds</a></li></ul><div class="member-type">Methods</div><ul class="inner"><li><a href="ComponentView.html#getBIMProperties">getBIMProperties</a></li><li><a href="ComponentView.html#getSubprojectId">getSubprojectId</a></li><li><a href="ComponentView.html#setColor">setColor</a></li><li><a href="ComponentView.html#setDefaultColor">setDefaultColor</a></li></ul></div></li><li><a href="DynamicCircle.html">DynamicCircle</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="DynamicCircle_sub"></div></li><li><a href="GeometryCollection.html">GeometryCollection</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="GeometryCollection_sub"><div class="member-type">Methods</div><ul class="inner"><li><a href="GeometryCollection.html#addBox">addBox</a></li><li><a href="GeometryCollection.html#getPropertiesById">getPropertiesById</a></li><li><a href="GeometryCollection.html#removeById">removeById</a></li></ul></div></li><li><a href="MarkerCollection.html">MarkerCollection</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="MarkerCollection_sub"><div class="member-type">Members</div><ul class="inner"><li><a href="MarkerCollection.html#length">length</a></li></ul><div class="member-type">Methods</div><ul class="inner"><li><a href="MarkerCollection.html#add">add</a></li><li><a href="MarkerCollection.html#removeAll">removeAll</a></li><li><a href="MarkerCollection.html#removeById">removeById</a></li><li><a href="MarkerCollection.html#update">update</a></li></ul></div></li><li><a href="MarkerView.html">MarkerView</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="MarkerView_sub"><div class="member-type">Members</div><ul class="inner"><li><a href="MarkerView.html#id">id</a></li><li><a href="MarkerView.html#properties">properties</a></li></ul></div></li><li><a href="MarqueeEditor.html">MarqueeEditor</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="MarqueeEditor_sub"><div class="member-type">Members</div><ul class="inner"><li><a href="MarqueeEditor.html#marqueeStart">marqueeStart</a></li><li><a href="MarqueeEditor.html#marqueeStop">marqueeStop</a></li></ul><div class="member-type">Methods</div><ul class="inner"><li><a href="MarqueeEditor.html#destroy">destroy</a></li><li><a href="MarqueeEditor.html#startMarquee">startMarquee</a></li></ul></div></li><li><a href="MeasureEditor.html">MeasureEditor</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="MeasureEditor_sub"><div class="member-type">Members</div><ul class="inner"><li><a href="MeasureEditor.html#mode">mode</a></li></ul></div></li><li><a href="MouseEventHandler.html">MouseEventHandler</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="MouseEventHandler_sub"></div></li><li><a href="OrbitControl.html">OrbitControl</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="OrbitControl_sub"><div class="member-type">Members</div><ul class="inner"><li><a href="OrbitControl.html#enableInputs">enableInputs</a></li><li><a href="OrbitControl.html#model">model</a></li><li><a href="OrbitControl.html#origin">origin</a></li></ul><div class="member-type">Methods</div><ul class="inner"><li><a href="OrbitControl.html#invertZoom">invertZoom</a></li><li><a href="OrbitControl.html#removeMotion">removeMotion</a></li><li><a href="OrbitControl.html#resetCamera">resetCamera</a></li><li><a href="OrbitControl.html#setMotion">setMotion</a></li><li><a href="OrbitControl.html#zoomIn">zoomIn</a></li><li><a href="OrbitControl.html#zoomOut">zoomOut</a></li></ul></div></li><li><a href="ProjectView.html">ProjectView</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="ProjectView_sub"><div class="member-type">Members</div><ul class="inner"><li><a href="ProjectView.html#components">components</a></li><li><a href="ProjectView.html#drawEdge">drawEdge</a></li><li><a href="ProjectView.html#floors">floors</a></li><li><a href="ProjectView.html#isReady">isReady</a></li><li><a href="ProjectView.html#name">name</a></li><li><a href="ProjectView.html#projectId">projectId</a></li></ul><div class="member-type">Methods</div><ul class="inner"><li><a href="ProjectView.html#setVisiblityFromTree">setVisiblityFromTree</a></li></ul></div></li><li><a href="RoamEditor.html">RoamEditor</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="RoamEditor_sub"><div class="member-type">Members</div><ul class="inner"><li><a href="RoamEditor.html#enabled">enabled</a></li><li><a href="RoamEditor.html#isCollision">isCollision</a></li><li><a href="RoamEditor.html#isGravitative">isGravitative</a></li><li><a href="RoamEditor.html#movementSpeed">movementSpeed</a></li></ul><div class="member-type">Methods</div><ul class="inner"><li><a href="RoamEditor.html#destroy">destroy</a></li></ul></div></li><li><a href="SceneView.html">SceneView</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="SceneView_sub"><div class="member-type">Members</div><ul class="inner"><li><a href="SceneView.html#drawEdge">drawEdge</a></li><li><a href="SceneView.html#edgeColor">edgeColor</a></li><li><a href="SceneView.html#id">id</a></li><li><a href="SceneView.html#isReady">isReady</a></li><li><a href="SceneView.html#name">name</a></li><li><a href="SceneView.html#parentSceneId">parentSceneId</a></li><li><a href="SceneView.html#projectList">projectList</a></li></ul><div class="member-type">Methods</div><ul class="inner"><li><a href="SceneView.html#clearBlinkComponentsFromGuids">clearBlinkComponentsFromGuids</a></li><li><a href="SceneView.html#clearHighlightComponents">clearHighlightComponents</a></li><li><a href="SceneView.html#clearIsolation">clearIsolation</a></li><li><a href="SceneView.html#fadeInComponentsFromGuids">fadeInComponentsFromGuids</a></li><li><a href="SceneView.html#fadeOutComponentsFromGuids">fadeOutComponentsFromGuids</a></li><li><a href="SceneView.html#getComponentFromTree">getComponentFromTree</a></li><li><a href="SceneView.html#hideComponentsFromGuids">hideComponentsFromGuids</a></li><li><a href="SceneView.html#hideComponentsFromTypes">hideComponentsFromTypes</a></li><li><a href="SceneView.html#isolateComponentsFromGuids">isolateComponentsFromGuids</a></li><li><a href="SceneView.html#isolateComponentsFromTypes">isolateComponentsFromTypes</a></li><li><a href="SceneView.html#setBlinkComponentsFromGuids">setBlinkComponentsFromGuids</a></li><li><a href="SceneView.html#setColorForAll">setColorForAll</a></li><li><a href="SceneView.html#setColorFromGuids">setColorFromGuids</a></li><li><a href="SceneView.html#setHighlightComponentsFromGuids">setHighlightComponentsFromGuids</a></li><li><a href="SceneView.html#setHighlightComponentsFromTree">setHighlightComponentsFromTree</a></li><li><a href="SceneView.html#setHighlightComponentsFromTypes">setHighlightComponentsFromTypes</a></li><li><a href="SceneView.html#setLightIntensity">setLightIntensity</a></li><li><a href="SceneView.html#setVisiblityFromTree">setVisiblityFromTree</a></li><li><a href="SceneView.html#showAllComponents">showAllComponents</a></li><li><a href="SceneView.html#showComponentsFromGuids">showComponentsFromGuids</a></li><li><a href="SceneView.html#showComponentsFromTypes">showComponentsFromTypes</a></li></ul></div></li><li><a href="SkyBox.html">SkyBox</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="SkyBox_sub"></div></li><li><a href="TiandituMap.html">TiandituMap</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="TiandituMap_sub"></div></li><li><a href="VideoProjection.html">VideoProjection</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="VideoProjection_sub"><div class="member-type">Members</div><ul class="inner"><li><a href="VideoProjection.html#heading">heading</a></li><li><a href="VideoProjection.html#pitch">pitch</a></li><li><a href="VideoProjection.html#roll">roll</a></li><li><a href="VideoProjection.html#targetPosition">targetPosition</a></li><li><a href="VideoProjection.html#viewerPosition">viewerPosition</a></li></ul></div></li><li><a href="Viewer.html">Viewer</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="Viewer_sub"><div class="member-type">Members</div><ul class="inner"><li><a href="Viewer.html#animatedSpeed">animatedSpeed</a></li><li><a href="Viewer.html#cameraMoveEnd">cameraMoveEnd</a></li><li><a href="Viewer.html#cameraMoveStart">cameraMoveStart</a></li><li><a href="Viewer.html#cimControlMode">cimControlMode</a></li><li><a href="Viewer.html#currentScene">currentScene</a></li><li><a href="Viewer.html#currentView">currentView</a></li><li><a href="Viewer.html#enableMarquee">enableMarquee</a></li><li><a href="Viewer.html#navigationMode">navigationMode</a></li><li><a href="Viewer.html#roamEditor">roamEditor</a></li><li><a href="Viewer.html#shouldAnimate">shouldAnimate</a></li><li><a href="Viewer.html#taaEnabled">taaEnabled</a></li><li><a href="Viewer.html#viewerMode">viewerMode</a></li></ul><div class="member-type">Methods</div><ul class="inner"><li><a href="Viewer.html#addMouseEventListener">addMouseEventListener</a></li><li><a href="Viewer.html#addVideoProject">addVideoProject</a></li><li><a href="Viewer.html#addWater">addWater</a></li><li><a href="Viewer.html#createVolumeRender">createVolumeRender</a></li><li><a href="Viewer.html#destroy">destroy</a></li><li><a href="Viewer.html#gotoDefaultProjectView">gotoDefaultProjectView</a></li><li><a href="Viewer.html#homeView">homeView</a></li><li><a href="Viewer.html#isDestroyed">isDestroyed</a></li><li><a href="Viewer.html#loadModel">loadModel</a></li><li><a href="Viewer.html#loadSubProject">loadSubProject</a></li><li><a href="Viewer.html#loadTileset">loadTileset</a></li><li><a href="Viewer.html#pick">pick</a></li><li><a href="Viewer.html#pickPosition">pickPosition</a></li><li><a href="Viewer.html#remove">remove</a></li><li><a href="Viewer.html#removeMouseEventListener">removeMouseEventListener</a></li><li><a href="Viewer.html#removeScene">removeScene</a></li><li><a href="Viewer.html#removeVideoProjection">removeVideoProjection</a></li><li><a href="Viewer.html#removeVolumeRender">removeVolumeRender</a></li><li><a href="Viewer.html#removeWater">removeWater</a></li><li><a href="Viewer.html#setCurrentTime">setCurrentTime</a></li><li><a href="Viewer.html#setLookAtCenter">setLookAtCenter</a></li><li><a href="Viewer.html#setMap">setMap</a></li><li><a href="Viewer.html#updateVolumeRender">updateVolumeRender</a></li><li><a href="Viewer.html#zoomToComponent">zoomToComponent</a></li></ul></div></li><li><a href="VolumeRender.html">VolumeRender</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="VolumeRender_sub"><div class="member-type">Members</div><ul class="inner"><li><a href="VolumeRender.html#alphaCorrection">alphaCorrection</a></li></ul></div></li><li><a href="Water.html">Water</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="Water_sub"></div></li><li><a href="WebMapTileService.html">WebMapTileService</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="WebMapTileService_sub"></div></li></ul></div><div class="lnb-api hidden"><h3>Global</h3><ul><li><a href="global.html#BingMapStyle">BingMapStyle</a></li><li><a href="global.html#CameraMotionInputs">CameraMotionInputs</a></li><li class="hidden"><a href="global.html#CameraView">CameraView</a></li><li><a href="global.html#CIMControlMode">CIMControlMode</a></li><li><a href="global.html#CommentType">CommentType</a></li><li class="hidden"><a href="global.html#eventHandler">eventHandler</a></li><li><a href="global.html#InfoField">InfoField</a></li><li><a href="global.html#MeasureMode">MeasureMode</a></li><li class="hidden"><a href="global.html#MeasureResult">MeasureResult</a></li><li class="hidden"><a href="global.html#MeasureResultCallback">MeasureResultCallback</a></li><li class="hidden"><a href="global.html#Mouse">Mouse</a></li><li><a href="global.html#MouseEventType">MouseEventType</a></li><li><a href="global.html#NavigationMode">NavigationMode</a></li><li><a href="global.html#TiandituMapStyle">TiandituMapStyle</a></li><li><a href="global.html#TilingScheme">TilingScheme</a></li><li class="hidden"><a href="global.html#ViewCubeConfig">ViewCubeConfig</a></li><li><a href="global.html#ViewerMode">ViewerMode</a></li></ul></div>
</nav>
<div id="resizer"></div>

<div class="main" id="main">
    




<section>

<header>
    
        <h2><span class="attribs"><span class="type-signature"></span></span>App<span class="signature">()</span><span class="type-signature"></span></h2>
        
            <div class="class-description"><p>应用模块</p></div>
        
    
</header>

<article>
    
        <div class="container-overview">
        
            

<dt>
    
        <h4 class="name" id="App">
            
                new <span class="type-signature"></span>App<span class="signature">()</span><span class="type-signature"></span>
                
            
        </h4>

        
    
</dt>
<dd>

    

    

    

    

    

    

    

    

    

    

    

    


<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>


    

</dd>

        
        </div>
    

    

    

    

    

    

    

    

    
        <h3 class="subsection-title">Methods</h3>

        <dl>
                

<dt>
    
        <h4 class="name" id=".Token">
            
                <span class="type-signature"><span class="icon green">static</span> </span>Token<span class="signature">(appid, secret)</span><span class="type-signature"> &rarr; {Promise}</span>
                
            
        </h4>

        
    
</dt>
<dd>

    
    <div class="description">
        <p>根据appid和secret获取Token</p>
    </div>
    

    

    

    

    
    <div class="container-params">
        <h5>Parameters:</h5>
        
<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>appid</code></td>
            

            <td class="type">
            
            </td>

            

            

            <td class="description last"><p>用户应用Id</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>secret</code></td>
            

            <td class="type">
            
            </td>

            

            

            <td class="description last"><p>用户应用secret</p></td>
        </tr>

    
    </tbody>
</table>

    </div>
    

    

    

    

    

    

    
    <div class="container-returns">
        <h5>Returns:</h5>
        
                



<span class="param-type">Promise</span>





- <p>包含tonken信息的Promise</p>




            
    </div>
    

    


<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>


    

</dd>

            
                

<dt>
    
        <h4 class="name" id=".ValidateToken">
            
                <span class="type-signature"><span class="icon green">static</span> </span>ValidateToken<span class="signature">(token)</span><span class="type-signature"> &rarr; {Promise}</span>
                
            
        </h4>

        
    
</dt>
<dd>

    
    <div class="description">
        <p>校验Token的有效性</p>
    </div>
    

    

    

    

    
    <div class="container-params">
        <h5>Parameters:</h5>
        
<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>token</code></td>
            

            <td class="type">
            
            </td>

            

            

            <td class="description last"><p>用户应用Id</p></td>
        </tr>

    
    </tbody>
</table>

    </div>
    

    

    

    

    

    

    
    <div class="container-returns">
        <h5>Returns:</h5>
        
                



<span class="param-type">Promise</span>





- <p>包含true|false的Promise</p>




            
    </div>
    

    


<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>


    

</dd>

            </dl>
    

    

    
</article>

</section>




</div>

<footer>
    <img class="logo" src="./logo.png" style="width: 156px; height: 36px">
    <div class="footer-text"> </div>
</footer>
<script>prettyPrint();</script>
<script src="scripts/jquery.min.js"></script>
<script src="scripts/tui-doc.js"></script>
<script src="scripts/linenumber.js"></script>

    <script>
        var id = 'App_sub'.replace(/"/g, '_');
        var selectedApi = document.getElementById(id); // do not use jquery selector
        var $selectedApi = $(selectedApi);

        $selectedApi.removeClass('hidden');
        $selectedApi.parent().find('.glyphicon').removeClass('glyphicon-plus').addClass('glyphicon-minus');
        showLnbApi();
    </script>

</body>
</html>